package ru.dc.gui.ncurses;

import ru.dc.ConnectionManager;

/**
 * <pre>
 * User: Penkov Vladimir
 * Date: 12.10.2010
 * Time: 10:34:53
 * </pre>
 */
public class Application {

    private static Application application;
    private ConnectionManager connectionManager;
    private MainFrame mainFrame;

    public static Application getApplication() {
        return application;
    }

    public void start() {
        connectionManager = new ConnectionManager();
        mainFrame = new MainFrame();
        mainFrame.setVisible(true);
    }

    public ConnectionManager getConnectionManager() {
        return connectionManager;
    }

    public void setConnectionManager(ConnectionManager connectionManager) {
        this.connectionManager = connectionManager;
    }

    public MainFrame getMainFrame() {
        return mainFrame;
    }

    public void setMainFrame(MainFrame mainFrame) {
        this.mainFrame = mainFrame;
    }

    public static void main(String[] args) {
        application = new Application();
        application.start();
    }
}
